<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增商品信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-product-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">商品编码 ：</label>
                <div class="col-sm-8">
                    <input name="productCode"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品名称 ：</label>
                <div class="col-sm-8">
                    <input name="productName"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品来源 ：</label>
                <div class="col-sm-8">
                    <input name="source"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">品牌：</label>
                <div class="col-sm-8">
                    <input name="brand"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品单位 ：</label>
                <div class="col-sm-8">
                    <input name="productUnit"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品描述 ：</label>
                <div class="col-sm-8">
                    <input name="remark"  class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">参数：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.parameter" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">大类：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.kind1"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">中类：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.kind2" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">小类：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.kind3"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">型号：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.model"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">颜色：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.color"  class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">开票名称 ：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.invoiceName"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">税率：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.taxRateText"  class="form-control" type="text">

                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">税收编码：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.taxCode"  class="form-control" type="text">

                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">商品链接：</label>
                <div class="col-sm-8">
                    <input name="productDetailOmsDo.ecPreviewUrl"  class="form-control" type="text">

                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">

        var prefix = ctx + "scm/product";

        $("#form-product-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-product-add').serialize());
            }
        }
    </script>
</body>
</html>
